package cn.com.cetccst.compliancecheck.demo.dialog;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AlertDialog;

import cn.com.cetccst.compliancecheck.demo.R;

public class ConfigInfoDlg extends AlertDialog.Builder {
    public static void show(Context context, String info) {

        View view = LayoutInflater.from(context).inflate(R.layout.config_info, null, false);
        ((TextView) view).setText(info);
        new ConfigInfoDlg(context).setView(view).show();
    }

    public ConfigInfoDlg(@NonNull Context context) {
        super(context);
    }

    public interface Callback {
        void handleGeoFenceParams(double lng, double lat, float radius);
    }
}
